#include<iostream>
using namespace std;
int main(){
	int a;
	char b;
	cin>>a;
	if(a%123<=122||a%123>=97){
		a=a%123;
		cout<<a<<endl;cout<<char(47);
		return 0;
	}
	else if(a%91<=90||a%91>=65){
		a=a%91;
		cout<<a;
		return 0;
	}
	else{
		cout<<"*"<<endl;
		return 0;
	}
	
}
